pkgconfigdir=$(libdir)/pkgconfig
pkgconfig_DATA=libperseus.pc

EDIT = sed \
        -e 's,@bindir\@,$(bindir),g' \
        -e 's,@sbindir\@,$(sbindir),g' \
        -e 's,@LIBPERSEUS_ARCH_LIBS\@,$(LIBPERSEUS_ARCH_LIBS),g' \
        -e 's,@includedir\@,$(includedir),g' \
        -e 's,@libdir\@,$(libdir),g' \
        -e 's,@PACKAGE_VERSION\@,$(PACKAGE_VERSION),g' 

%.pc: Makefile $(srcdir)/%.pc.in
	rm -f $*.pc $*.pc.tmp
	$(EDIT) $(srcdir)/$*.pc.in >$*.pc.tmp
	mv $*.pc.tmp $*.pc

EXTRA_DIST=libperseus.pc.in

